package com.lexian.service;

import com.lexian.entity.Recaddr;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lexian.utils.CommonResponse;

import java.util.List;

/**
 * <p>
 * 收货地址 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-01-14
 */
public interface RecaddrService extends IService<Recaddr> {
    /**
     * 修改地址
     *
     * @param recaddr 地址
     * @return
     */
    public void modifyRecaddr(Recaddr recaddr);


    /**
     * 添加地址
     * @param recaddr
     * @return
     */
    public void addRecaddr(Recaddr recaddr);

    /**
     * 查询用户地址
     * @param cusId
     * @return
     */
    public List<Recaddr> getAllRecaddr(Long cusId);

    /**
     * 删除地址
     * @param recaddrId
     * @return
     */
    public void deleteRecaddrByrecaddrId(Long recaddrId);

    /**
     * 使用指定地址
     * @param recaddrId
     * @return
     */
    public Recaddr getRecaddrByrecaddrId(Long recaddrId);
}
